{block name=body}
<div class="row">
	<div class="col-sm-12">
		<form class="well form-horizontal" id="Edit_Record" accept-charset="UTF-8" method="post" autocomplete=off>
			<div class="row">
				<div class="col-sm-12 edit-page-header">
					<span class="edit-page-title">{if $fields.email_additional_id neq ""}编辑{else}新建{/if} {$zone} {if $cnt eq ""}{assign var=cnt value=0}{/if}</span> 
					<a href="javascript:void(0);" onClick="$('#Edit_Record').submit();" class="btn btn-primary pull-right" style="margin-left: 38px;"><span class="glyphicon glyphicon-floppy-saved"></span> 保存</a>
					<input type="hidden" value="email_additional_id" name="primary_id" id="primary_id"/> 
					<input type="hidden" value="{$fields.email_additional_id}" name="field[1][tbl_email_additional][{$cnt}][email_additional_id]" id="email_additional_id" /> 
					<input type="hidden" value="email_additional_id" name="field[1][tbl_email_additional][{$cnt}][id]" id="id" /> 
					<input type="hidden" name="formToken" id="formToken" value="{$token}" />
				</div>

				<div class="form-group">
					<label class="col-sm-3 control-label" for="email_additional_name">名称</label>
					<div class="col-sm-5">
						<input class="form-control" type="text" value="{$fields.email_additional_name}" name="email_additional_name" id="email_additional_name" disabled>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label" for="email_additional_content">内容</label>
					<div class="col-sm-5">
						<textarea {if $fields.email_additional_flag eq 1}class="form-control" maxlength="160" rows="3"{else}class="tinymce"{/if} name="field[1][tbl_email_additional][{$cnt}][email_additional_content]" id="email_additional_content">{$fields.email_additional_content}</textarea>							
					</div>
				</div>
						
				<div class="form-group">
					<div class="col-sm-offset-3 col-sm-9">
						<a href="javascript:void(0);" onClick="$('#Edit_Record').submit();" class="btn btn-primary pull-right" style="margin-top: 50px;"><span class="glyphicon glyphicon-floppy-saved"></span> 保存</a>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>

{include file='jquery-validation.tpl'}

<script type="text/javascript">

$(document).ready(function(){

	$('#Edit_Record').validate({
		onkeyup: false
	});
	
});




</script>

{/block}
